<?php
/**
 * test
 *
 * @package services
 * @author yeyupl
 */
class TestService {

    public function __constract() {
        //todo
    }
    /**
     * test
     * @static
     * @return boolean
     */
    public  function test($name) {

        $user = testModel::test($name);
        $data = mysql::getInstance()->setTable('user')->select("name='".$name."'")->fetch();
        $cache = new cache();
        $cache->set('test',$data);
        $array = array (
          'name' => $data['id'],
          'user' => $user,
          'time' => time()
        );
        return TestVo::getVo($cache->get('test'));

    }

    public function say($msg) {
        return $msg;
    }


}


